using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class Slime : MonoBehaviour
{
   

    public float Cost;
    private int TotalNum = 100;
    public float Size=1;
    public GameObject GoalObject;
    private Vector3 Destination;
    private Vector3 OriginalScale;// Start is called before the first frame update
    void Start()
    {
        Destination = GoalObject.transform.position;
    }

    // Update is called once per frame
    void Update()
    {
      
       ChangeSize();
    }

    void MoveToDestination()
    {
        transform.position = Destination;
    }

    void ChangeSize()//根据size数值来改变史莱姆大小;
    {
        transform.localScale = new Vector3(0.2f * Size, 0.2f * Size, 1);
    }
}
